package com.gec.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gec.entity.AddressBook;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author : [chenxys]
 * @version : [v1.0]
 * @createTime : [2022/7/14 20:07]
 */
public interface AddressBookService extends IService<AddressBook> {
    List<AddressBook> listAll();

    AddressBook getDefaultAddressBook();

    AddressBook getOneWithId(Long id);

    void updateAddressBook(AddressBook addressBook);

    void saveAddressBook(AddressBook addressBook);

    void updateDefaults(AddressBook addressBook);
}
